/* x,y,width,height describes a rectangle in the gl render buffer
coordinate space, and its top left corner is drawn at the current
position according to the cairo translation. */
+
/**
- * gdk_cairo_draw_from_gl
+ * gdk_cairo_draw_from_gl:
* @cr: a cairo context
* @window: The window we're rendering for (not necessarily into)
- * @source: The GL id of the source buffer
+ * @source: The GL ID of the source buffer
* @source_type: The type of the @source
* @buffer_scale: The scale-factor that the @source buffer is allocated for
* @x: The source x position in @source to start copying from in GL coordinates
* @width: The width of the region to draw
* @height: The height of the region to draw
*
- * This is the main way to draw GL content in Gtk+. It takes a render buffer id
+ * This is the main way to draw GL content in GTK+. It takes a render buffer ID
* (@source_type == #GL_RENDERBUFFER) or a texture id (@source_type == #GL_TEXTURE)
* and draws it onto @cr with an OVER operation, respecting the current clip.
*
*
* For #GL_RENDERBUFFER the code will always fall back to software for buffers
* with alpha components, so make sure you use #GL_TEXTURE if using alpha.
+ *
+ * Since: 3.16
*/
void
gdk_cairo_draw_from_gl (cairo_t *cr,
void
gdk_gl_texture_from_surface (cairo_surface_t *surface,
- cairo_region_t *region)
+ cairo_region_t *region)
{
GdkGLContext *current;
cairo_surface_t *image;
* #GdkGLContext is an object representing the platform-specific
* OpenGL drawing context.
*
- * #GdkGLContexts are created for a #GdkWindow using gdk_window_create_gl_context(), and
- * the context will match the GdkVisual of the window.
+ * #GdkGLContexts are created for a #GdkWindow using
+ * gdk_window_create_gl_context(), and the context will match
+ * the #GdkVisual of the window.
*
* A #GdkGLContexts is not tied to any particulare normal
* framebuffer. For instance, it cannot draw to the #GdkWindow back
- * buffer. The gdk repaint system is in full control of the painting
+ * buffer. The GDK repaint system is in full control of the painting
* to that. Instead you can create render buffers or textures and use
* gdk_cairo_draw_from_gl() in the draw function of your widget to
- * draw them. Then Gdk will handle the integration of your rendering
+ * draw them. Then GDK will handle the integration of your rendering
* with that of other widgets.
*
- * Support for #GdkGLContext is platform specific, context creation can fail, returning
- * a %NULL context.
+ * Support for #GdkGLContext is platform-specific, context creation
+ * can fail, returning %NULL context.
*
* A #GdkGLContext has to be made "current" in order to start using
* it, otherwise any OpenGL call will be ignored.
* ## Creating a new OpenGL context ##
*
* In order to create a new #GdkGLContext instance you need a
- * #GdkWindow, which you typically get during the realize call of a widget.
+ * #GdkWindow, which you typically get during the realize call
+ * of a widget.
*
* ## Using a GdkGLContext ##
*
* Since: 3.16
*/
void
-gdk_gl_context_flush_buffer (GdkGLContext *context,
+gdk_gl_context_flush_buffer (GdkGLContext *context,
cairo_region_t *painted,
cairo_region_t *damage)
{